<!---->
<%= form_for(:session, :url => {:action => 'update'}, :method => 'put', :html => {:class=>'form-horizontal'}) do |t| %>
	<fieldset>
		<legend>
    <%= link_to '下载文件列表', downloads_path %>
    </legend>
  <div class="control-group">
    <label class="control-label">名称</label>
    <div class="controls">
    <%= t.text_field :title, :value => @download.title %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">分类</label>
    <div class="controls">
      <%= select_tag "session[category]", options_from_collection_for_select(@dsort, 'id', 'title', @download.category) %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">版本</label>
    <div class="controls">
    <%= t.text_field :version, :value => @download.version %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">大小</label>
    <div class="controls">
    <%= t.text_field :filesize, :value => @download.filesize %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">地址</label>
    <div class="controls">
    <%= t.text_field :downurl, :value => @download.downurl %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">说明</label>
    <div class="controls">
    <%= t.text_field :remark, :value => @download.remark %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">发布时间</label>
    <div class="controls">
    <%= t.text_field :pubtime, :value => @download.pubtime %>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <input type="hidden" name="id" id="id" value="<%= @download.id %>" />
      <button type="submit" class="btn">修改</button>
    </div>
  </div>
</fieldset>
<% end %>
<!---->
